// 公共路由，无须鉴权
export const PublicRoutes = [
  {
    path: "/login",
    name: "login",
    component: () => import("layouts/LoginLayout/LoginLayoutIndex.vue"),
    children: [],
  },
  {
    path: "/new-tab",
    component: () => import("layouts/NewTabLayout/NewTabLayoutIndex.vue"),
    children: [],
  },

  // // Always leave this as last one,
  // // but you can also remove it

  // 以下内容在动态路由中添加，解决刷新404的问题:store-permission-actions
  // {
  //     path: '/:catchAll(.*)*',
  //     name: 'notFound',
  //     component: () => import('pages/Error404.vue')
  // }
];

export const PrivateRoutes = [
  // {
  //   path: "/",
  //   redirect: { path: "/dashboard" },
  //   children: [],
  // },
  // {
  //   path: "/dashboard",
  //   component: () => import("layouts/MainLayout/MainLayoutIndex.vue"),
  //   children: [],
  // },

  {
    path: "/",
    redirect: { path: "/dashboard" },
    component: () => import("layouts/MainLayout/MainLayoutIndex.vue"),
    children: [],
  },
  {
    path: "/big-screen",
    component: () => import("layouts/BigScreenLayout/BigScreenLayoutIndex.vue"),
  },
];

export default [...PublicRoutes];
